package cool.lichuan.project.system.dto;

import cn.hutool.core.util.StrUtil;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.io.*;

@Data
@Configuration
@ConfigurationProperties(prefix = "header-info")
public class HeaderInfo implements Serializable,Cloneable{

    private String cookie;
    private String zftsl;
    private String signature;
    private String iv;
    private String setCookie;



    public String getSignature() {
        if (StrUtil.isNotBlank(signature) && signature.length() >= 16) {
            return signature.substring(0, 16);
        }
        return "";
    }
}
